<!---------------------- Start content------------------------------->

<div id="content">
    <div id="content2_lienhe"><br/>
        <div id="otron"><img src="<?php echo base_url() ?>assets/front_end/css/images/otron2.png" align="left" style="padding-left:10px;padding-bottom:5px;" /></div>
        <div id="bieu_tuong" align="right" style="padding-right:20px;padding-bottom:5px;">
            <div id="sub_bieutuong"><a href=""><img src="<?php echo base_url() ?>assets/front_end/css/images/Map.png" width="24px" height="24px"/></a></div>&nbsp;
            <div id="sub_bieutuong"><a href=""><img src="<?php echo base_url() ?>assets/front_end/css/images/google.png" width="24px" height="24px"/></a></div>&nbsp;
            <div id="sub_bieutuong"><a href=""><img src="<?php echo base_url() ?>assets/front_end/css/images/1318731927_email.png"  width="24px" height="24px"/></a></div>&nbsp;
            <div id="sub_bieutuong"><a href=""><img src="<?php echo base_url() ?>assets/front_end/css/images/facebook.png"  width="24px" height="24px" /></a></div>&nbsp;		
        </div>
        <hr /><br/>
        <p id="TieuDE_lienhe">Liên hệ</p>
        <br /><br />
        <div id="map" style="height:360px; width:60%;padding-left:50px;"></div><br />
        <div id="Box_lienhe">
            <div id="Box_lienhe_mail">
                <table style="width:100%" style="text-align:left">
                    <tr height="40px"><td colspan="2" valign="top"><p id="caption_td_lienhe">Leotran Studio</p></td></tr>
                    <tr>
                        <td style="padding:4px;font-weight:bold">OpenTime</td>
                        <td id="noidunglienhe"><?php echo $contact_information->open_time; ?></td>
                    </tr>
                    <tr>
                        <td style="padding:4px;font-weight:bold">Address</td>
                        <td id="noidunglienhe"><?php echo $contact_information->address; ?></td>
                    </tr>
                    <tr>
                        <td style="padding:4px;font-weight:bold">Email</td>
                        <td id="noidunglienhe"><?php echo $contact_information->email; ?></td>
                    </tr>
                    <tr>
                        <td style="padding:4px;font-weight:bold">Phone Number</td>
                        <td id="noidunglienhe"><?php echo $contact_information->phone_number; ?></td>
                    </tr>
                </table>
            </div>
            <div id="write_box_lienhe">
                
                <form id="send_contact" name="send_contact" action="<?php echo site_url("lienhe/gui_lienhe"); ?>" method="post">
                    
                    <table style="width:100%"  align="left" style="padding:4px;">
                        <tr height="40px"><td colspan="2" valign="top"><p id="caption_td_lienhe">Gửi yêu cầu cho webstile</p></td></tr>
                        <?php if ($this->session->flashdata('error')):?>
                         <tr>
                            <td width="25%" style="font-weight:bold"></td>
                            <td><span class="send_contact_success">Gui lien he thanh cong</span></td>                            
                        </tr>
                        <?php endif; ?>
                        <tr>
                            <td width="25%" style="font-weight:bold"></td>
                            <td><span class="send_contact_error"><?php echo form_error("full_name");?></span></td>                            
                        </tr>
                        <tr height="30px">
                                       
                            <td width="25%" style="font-weight:bold">Họ Tên</td>
                            <td><input type="text" name ="full_name" value="<?php echo set_value('full_name');?>" style="width:200px;" /></td>
                        </tr>
                        <tr>
                            <td width="25%" style="font-weight:bold"></td>
                            <td><span class="send_contact_error"><?php echo form_error("email");?></span></td>                           
                        </tr>
                        <tr height="30px">
                            <td style="font-weight:bold">Email</td>
                            <td><input type="text" name ="email" value="<?php echo set_value('email');?>" style="width:200px;" /></td>
                        </tr>
                        <tr>
                            <td width="25%" style="font-weight:bold"></td>
                            <td><span class="send_contact_error"><?php echo form_error("content");?></span></td>                        
                        </tr>
                        <tr height="30px">
                            
                            <td style="font-weight:bold">Nội dung</td>
                            <td><textarea cols="48" rows="5" name = "content" ><?php echo set_value('content');?></textarea></td>
                        </tr>
                        <tr height="50px" valign="bottom">
                            <td colspan="2" align="center"><p id="caption_td_lienhe">
                                    <input type="submit" class="btn_tin3" value="Gửi bình luận" name ="send"/>&nbsp;&nbsp;
                                    <input type="reset" class="btn_tin3" value="Xóa"/></p>
                            </td>
                        </tr>
                    </table>
                    
                </form>
                
            </div>
        </div>
        <br /><br /><br />
        <p style="width:80%;text-align:left"><img src="" id="xembl" width="24px" height="24px" />&nbsp;Xem bình luận: </p><br />
        
        <?php foreach($contact as $comment) : ?>
        <div id="coment">
            <table width="100%" cellpadding="0" cellspacing="0" >
                <tr><td width="10%" rowspan="2">
                        <img src="<?php echo base_url() ?>assets/front_end/css/images/1318701928_comment.png" style="vertical-align:top" width="25px" height="25px" /></td>
                    <td width=""><?php echo $comment['content'];?></td>
                </tr>
                <tr>
                    <td></td><td></td>
                </tr>
            </table>
            <p style="text-align:right;padding-right:10px"><font size="-1"><?php echo date('d-m-Y', $comment['posted_time']);?></font>&nbsp;&nbsp;&nbsp;
                <a href="#"><img src="<?php echo base_url() ?>assets/front_end/css/images/like2.jpg" style="vertical-align:top" width="20px" height="20px" /></a>&nbsp; 
                <font color="#3366CC" size="-1">
                20 Like</font>&nbsp;&nbsp;
            </p>	
        </div>
        <?php endforeach;?>
        <p style="height:5px;"></p>
        
        <br />
        <div  style="width:80%" align="right">
            <table id="PhanTrangNewList_Tin3" cellspacing="1" cellpadding="1" width="40%">
                <tbody>
                    <tr>
                        <td>
                            <a id="ctl00_ContentPlaceHolder1_NewsList1_lbFirst" href="#" disabled="disabled">First Page</a>
                        </td>
                        <td>
                            <a id="ctl00_ContentPlaceHolder1_NewsList1_lbPrevious" href="#" disabled="disabled">&lt;&lt; Previous</a>
                        </td>
                        <td>
                            <table id="ctl00_ContentPlaceHolder1_NewsList1_dlPaging" href="#" cellspacing="1" border="0" 
                                   style="border-collapse:collapse;">
                                <tbody>
                                    <tr>
                                        <td>
                                            <a id="ctl00_ContentPlaceHolder1_NewsList1_dlPaging_ctl00_lbPaging" href="#" style="font-weight:
                                               bold;" disabled="disabled">1</a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                        <td>
                            <a id="ctl00_ContentPlaceHolder1_NewsList1_lbNext" href="#" disabled="disabled">Next &gt;&gt;</a>
                        </td>
                        <td>
                            <a id="ctl00_ContentPlaceHolder1_NewsList1_LbLast" href="#" disabled="disabled">Last Page</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div><br /><br />
    </div> <!---------End content 2---------------------> 	
</div> <!---------End content--------------------->